package com.ruoyi.service.impl;

import com.ruoyi.domain.Supplierinfo;
import com.ruoyi.mapper.SupplierinfoMapper;
import com.ruoyi.service.ISupplierinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * SupplierinfoService业务层处理
 * 
 * @author wjy
 * @date 2025-01-11
 */
@Service
public class SupplierinfoServiceImpl implements ISupplierinfoService 
{
    @Autowired
    private SupplierinfoMapper supplierinfoMapper;

    /**
     * 查询Supplierinfo
     * 
     * @param supplierId Supplierinfo主键
     * @return Supplierinfo
     */
    @Override
    public Supplierinfo selectSupplierinfoBySupplierId(Long supplierId)
    {
        return supplierinfoMapper.selectSupplierinfoBySupplierId(supplierId);
    }

    /**
     * 查询Supplierinfo列表
     * 
     * @param supplierinfo Supplierinfo
     * @return Supplierinfo
     */
    @Override
    public List<Supplierinfo> selectSupplierinfoList(Supplierinfo supplierinfo)
    {
        return supplierinfoMapper.selectSupplierinfoList(supplierinfo);
    }

    /**
     * 新增Supplierinfo
     * 
     * @param supplierinfo Supplierinfo
     * @return 结果
     */
    @Override
    public int insertSupplierinfo(Supplierinfo supplierinfo)
    {
        return supplierinfoMapper.insertSupplierinfo(supplierinfo);
    }

    /**
     * 修改Supplierinfo
     * 
     * @param supplierinfo Supplierinfo
     * @return 结果
     */
    @Override
    public int updateSupplierinfo(Supplierinfo supplierinfo)
    {
        return supplierinfoMapper.updateSupplierinfo(supplierinfo);
    }

    /**
     * 批量删除Supplierinfo
     * 
     * @param supplierIds 需要删除的Supplierinfo主键
     * @return 结果
     */
    @Override
    public int deleteSupplierinfoBySupplierIds(Long[] supplierIds)
    {
        return supplierinfoMapper.deleteSupplierinfoBySupplierIds(supplierIds);
    }

    /**
     * 删除Supplierinfo信息
     * 
     * @param supplierId Supplierinfo主键
     * @return 结果
     */
    @Override
    public int deleteSupplierinfoBySupplierId(Long supplierId)
    {
        return supplierinfoMapper.deleteSupplierinfoBySupplierId(supplierId);
    }
}
